package com.zbkj.crmeb.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.crmeb.store.model.OrderInfoDelivery;
import com.zbkj.crmeb.store.model.StoreOrderInfo;
import com.zbkj.crmeb.store.request.GetOrderDeliveryListRequest;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 订单购物物流表 Mapper 接口
 * </p>
 *
 * @author cyz
 * @since 2021-04-09
 */
public interface OrderInfoDeliveryDao extends BaseMapper<OrderInfoDelivery> {

    /**
     * 
     * @author cyz
     * @date 2021/4/12 17:56
 * @param orderInfoId
 * @return com.zbkj.crmeb.store.model.OrderInfoDelivery
     */
    public OrderInfoDelivery selectDeliveryByOrderInfoId(Integer orderInfoId);

    List<StoreOrderInfo> selectOrderDeliveryListByUnionQuery(GetOrderDeliveryListRequest request);

    Integer selectOrderDeliveryCountByCondition(GetOrderDeliveryListRequest searchRequest);

    BigDecimal getSumPriceByCondition(GetOrderDeliveryListRequest searchRequest);

}
